import requests

url = 'https://www.baidu.com/'

headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36'
}
# 1. pip install pyopenssl --upgrade
# response = requests.get(url, headers=headers)
# print(response, response.text)

# 2. verify=False
response = requests.get(url, headers=headers, verify=False)
print(response, response.text)

